package org.sczfdf.conf;

import static org.sczfdf.constants.Constant.CONFIG_DIR;
import static org.sczfdf.constants.Constant.CONF_NAME;
import static org.sczfdf.constants.Constant.ROOT_DIR;

/**
 * @author Created by cgb
 * @date 2023/2/2
 */
public class GlobalConf {
    private static final GlobalConf GLOBAL_CONF = new GlobalConf();;
    public static GlobalConf get() {
        return GLOBAL_CONF;
    }

    private String rootDir;
    private String configDir;
    private String confName;

    private GlobalConf() {
        rootDir = ROOT_DIR.getDefaultValue();
        configDir = CONFIG_DIR.getDefaultValue();
        confName = CONF_NAME.getDefaultValue();
    }

    public String getRootDir() {
        return rootDir;
    }

    public void setRootDir(String rootDir) {
        this.rootDir = rootDir;
    }

    public String getConfigDir() {
        return configDir;
    }

    public void setConfigDir(String configDir) {
        this.configDir = configDir;
    }

    public String getConfName() {
        return confName;
    }

    public void setConfName(String confName) {
        this.confName = confName;
    }
}
